package com.colud.client.util;

/**
 * JT809业务数据类型对应标识
 */
public class JT809Constants {

    public static int UP_CONNECT_RSP_SUCCESS = 0x00;//登录成功
    public static int UP_CONNECT_RSP_ERROR_01 = 0x01;//IP 地址不正确
    public static int UP_CONNECT_RSP_ERROR_02 = 0x02;//接入码不正确
    public static int UP_CONNECT_RSP_ERROR_03 = 0x03;//用户没注册
    public static int UP_CONNECT_RSP_ERROR_04 = 0x04;//密码错误
    public static int UP_CONNECT_RSP_ERROR_05 = 0x05;//资源紧张,稍后再连接(已经占 用);
    public static int UP_CONNECT_RSP_ERROR_06 = 0x06;//其他

    public static int UP_CONNECT_REQ = 0x1001;//主链路登录请求消息
    public static int UP_CONNECT_RSP = 0x1002;//主链路登录应答消息
    public static int UP_DICONNECE_REQ = 0x1003;//主链路注销请求消息
    public static int UP_DISCONNECT_RSP = 0x1004;//主链路注销应答消息
    public static int UP_LINKTEST_REQ = 0x1005;//主链路连接保持请求消息
    public static int UP_LINKTEST_RSP = 0x1006;//主链路连接保持应答消息
    public static int UP_DISCONNECT_INFORM = 0x1007;//主链路断开通知消息
    public static int UP_CLOSELINK_INFORM = 0x1008;//下级平台主动关闭链路通知消息

    public static int DOWN_CONNECT_REQ = 0x9001;//从链路连接请求消息
    public static int DOWN_CONNECT_RSP = 0x9002;//从链路连接应答消息
    public static int DOWN_DISCONNECT_REQ = 0x9003;//从链路注销请求消息

    //车辆动态交互 主链路
    public static int UP_EXG_MSG = 0x1200;//主链路动态信息交换消息
    public static int UP_EXG_MSG_REGISTER = 0x1201;//实时上传车辆注册信息
    public static int UP_EXG_MSG_REAL_LOCATION = 0x1202;//实时上传车辆定位信息
    public static int UP_EXG_MSG_HISTORY_LOCATION = 0x1203;//车辆定位信息自动补报
    public static int UP_EXG_MSG_RETURN_STARTUP_ACK = 0x1205;//启动车辆定位信息交换应答
    public static int UP_EXG_MSG_RETURN_END_ACK = 0x1206;//停止车辆定位信息交换应答
    public static int UP_EXG_MSG_APPLY_FOR_MONITOR_STARTUP = 0x1207;//申请交换指定车辆定位信息请求
    public static int UP_EXG_MSG_APPLY_FOR_MONITOR_END = 0x1208;//取消交换指定车辆定位
    public static int UP_EXG_MSG_APPLY_HISGNSSDATA_REQ = 0x1209;//补发车辆定位信息请求
    public static int UP_EXG_MSG_REPORT_DRIVER_INFO_ACK = 0x120A;//上报车辆驾驶员身份识别信息应答
    public static int UP_EXG_MSG_TAKE_EWAYBILL_ACK = 0x120B;//上报车辆电子运单应答
    //车辆动态交互 从链路
    public static int DOWN_EXG_MSG = 0x9200;//从链路动态信息交换消息
    public static int DOWN_EXG_MSG_CAR_LOCATION = 0x9202;//交换车辆定位信息
    public static int DOWN_EXG_MSG_HISTORY_ARCOSSAREA = 0x9203;//车辆定位信息交换补发
    public static int DOWN_EXG_MSG_CAR_INFO = 0x9204;//交换车辆静态信息
    public static int DOWN_EXG_MSG_RETURN_STARTUP = 0x9205;//启动车辆定位信息交换请求
    public static int DOWN_EXG_MSG_RETURN_END = 0x9206;//结束车辆定位信息交换请求
    public static int DOWN_EXG_MSG_APPLY_FOR_MONTTOR_STARTUP_ACK = 0x9207;//申请交换指定车辆定位信息应答
    public static int DOWN_EXG_MSG_APPLY_FOR_MONITOR_END_ACK = 0x9208;//取消交换指定车辆定位信息应答
    public static int DOWN_EXG_MSG_APPLY_HISGNSSDATA_ACK = 0x9209;//补发车辆定位信息应答
    public static int DOWN_EXG_MSG_REPORT_DRIVER_INFO = 0x920A;//上报车辆驾驶员身份识别信息请求
    public static int DOWN_EXG_MSG_TAKE_EWAYBILL_REQ = 0x920B;//上报车辆电子运单请求

    //平台间信息交互
    public static int UP_PLATFORM_MSG = 0x1300;//主链路平台间交互信息
    public static int UP_PLATFORM_MSG_POST_QUERY_ACK = 0x1301;//平台查岗应答
    public static int UP_PLATFORM_MSG_INFO_ACK = 0x1302;//下发平台报文应答

    public static int DOWN_PLATFORM_MSG = 0x9300;//从链路平台间交互信息
    public static int DOWN_PLATFORM_MSG_POST_QUERY_REQ = 0x9301;//平台查岗请求
    public static int DOWN_PLATFORM_MSG_INFO_REQ = 0x9302;//下发平台报文请求

    //报警信息交互
    public static int UP_WARN_MSG = 0x1400;//主链路报警信息交互
    public static int UP_WARN_MSG_URGE_TODO_ACK = 0x1401;//报警督办应答
    public static int UP_WARN_MSG_ADPT_INFO = 0x1402;//上报报警信息

    public static int DOWN_WARN_MSG = 0x9400;//从链路报警信息交互信息
    public static int DOWN_WARN_MSG_URGE_TODO_REQ = 0x9401;//上报报警信息

    //车辆监管类
    public static int UP_CTRL_MSG = 0x1500;//主链路车辆监管类
    public static int UP_CTRL_MSG_MONITOR_VEHICLE_REQ = 0x1501;//车辆单向监听请求
    public static int UP_CTRL_MSG_TAKE_PHOTO_REQ = 0x1502;//主链路车辆拍照请求
    public static int UP_CTRL_MSG_TEXT_INFO = 0x1503;//下发车辆报文请求
    public static int UP_CTRL_MSG_TAKE_TRAVEL_REQ = 0x1503;//上报车辆行使记录请求

}

